package com.atguigu.tingshu.account.service;

import com.atguigu.tingshu.model.account.UserAccount;
import com.atguigu.tingshu.vo.account.AccountLockResultVo;
import com.atguigu.tingshu.vo.account.AccountLockVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

public interface UserAccountService extends IService<UserAccount> {


    void saveUserAccount(Long obj);

    BigDecimal getAvailableAmount(Long userId);

    AccountLockResultVo checkAndLock(AccountLockVo accountLockVo);

    void updateAccount(AccountLockVo accountLockVo);

    /**
     * 检查及扣减账户余额；增加账户变动日志
     * @param accountLockVo
     */
//    void checkAndDeduct(AccountLockVo accountLockVo);
}
